package com.zmn.oms.services.interfaces.work;

import com.zmn.oms.common.dto.OmsBaseOperator;
import com.zmn.oms.common.exception.OmsBusinessException;
import com.zmn.oms.model.entity.work.OrderWork;

/**
 * 类描述：工单操作签名
 *
 * @author liuying
 * @date 2020-12-15 11:17:57
 */
public interface OrderWorkCasOperateService {

    /**
     * 获取签名
     *
     * @param orderWork
     * @param opType
     * @return
     */
    String getOrderCasSign(OrderWork orderWork, int opType);

    /**
     * 获取签名
     *
     * @param orderId
     * @param workId
     * @param opType
     * @return
     */
    String getOrderCasSign(Long orderId, Long workId, int opType);

    /**
     * 签名验证
     *
     * @param omsBaseOperator
     * @throws OmsBusinessException
     */
    void validate(OmsBaseOperator omsBaseOperator, int opType) throws OmsBusinessException;
}
